﻿using System;

namespace Protocol
{
    public static class TimeManager
    {
        private static TimeSpan _delta = TimeSpan.Zero;

        public static void Init(DateTime server, DateTime client)
        {
            _delta = server - client;
        }

        public static DateTime GetTime()
        {
            return DateTime.Now + _delta;
        }
    }
}
